//
//  MineOrderViewController.m
//  土巴兔
//
//  Created by 千锋 on 16/1/18.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "MineOrderViewController.h"
#import "Default.h"
@interface MineOrderViewController ()<UIWebViewDelegate>
@property (strong,nonatomic)UIWebView* webview;
@end

@implementation MineOrderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tabBarController.tabBar.hidden=YES;
    // Do any additional setup after loading the view from its nib.
    _webview=[[UIWebView alloc] initWithFrame:CGRectMake(0, 60, DEVICEWIDTH, DEVICEHEIGHT-60)];
    _webview.delegate=self;
    [self.view addSubview:_webview];
    NSMutableString* urlStr=[NSMutableString stringWithString:@"http://m.to8to.com/my/order/list?token="];
    [urlStr appendString:[[NSUserDefaults standardUserDefaults] objectForKey:@"to8to_token"]];
    NSString* tail1=@"&channel=%E9%AD%85%E6%97%8F%E5%BA%94%E7%94%A8%E4%B8%AD%E5%BF%83&appversion=3.6.0&systemversion=22&to8to_token=";
    [urlStr appendString:tail1];
    [urlStr appendString:[[NSUserDefaults standardUserDefaults] objectForKey:@"to8to_token"]];
    NSString* tail2=@"&appostype=1&imei=569eb1056c38e1e8&uid=";
    [urlStr appendString:tail2];
    [urlStr appendString:[[NSUserDefaults standardUserDefaults] objectForKey:@"uid"]];
    NSURLRequest* request=[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]];
    [_webview loadRequest:request];
}
- (IBAction)backClick:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:nil];
}

//http://m.to8to.com/my/order/list?token=5717321_bf586b7c3f00c492f129353e333930a7&channel=%E9%AD%85%E6%97%8F%E5%BA%94%E7%94%A8%E4%B8%AD%E5%BF%83&appversion=3.6.0&systemversion=22&to8to_token=5717321_bf586b7c3f00c492f129353e333930a7&appostype=1&imei=569eb1056c38e1e8&uid=5717321

@end
